<?php
function cleanString( $string )
{
	$string = stripslashes( $string );
	$string = preg_replace( "/<(P|p)(( )?\/)?>/", "\n\n", $string );
	$string = preg_replace( "/<(br)(( )?\/)?>/", "\n", $string );
	$string = preg_replace( "/&amp;amp;/", "&amp;", $string );
	
//	$string = strip_tags( html_entity_decode( $string, ENT_QUOTES ) );
	
	return $string;
}

?>